﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace findPrime
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int num = int.Parse(Console.ReadLine());
            Console.WriteLine(num+"的素数因子为："); 
            for (int i = 2; i <= num; i++)
            {
                int n = i;
                while ((num % n) == 0)
                {
                    if (judge(n)) Console.Write(n+" "); 
                    num = num / n;
                }
            }
            Console.ReadLine();
        }
        private static bool judge(int n)
        {
            if (n < 2) return false;  
            for (int i = 2; i < n; i++)
            {
                if (n % i == 0) return false;
            }
            return true;
        }
    }
}
